# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=yamkix
pkgver=0.9.0
pkgrel=3
pkgdesc="A python based yaml formatter"
url="https://github.com/looztra/yamkix"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-ruamel.yaml"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-runner"
source="$pkgname-$pkgver.tar.gz::https://github.com/looztra/yamkix/archive/v$pkgver.tar.gz"

[ "$CARCH" = "riscv64" ] && makedepends="$makedepends $checkdepends"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
5905a1849efc2b469a72fd274d984545bccfa0a0badb86dc69682171435188bf02b094604b768937c3b4423572f218bea72017db34d5daf0a3f2e4f94618a414  yamkix-0.9.0.tar.gz
"
